public class Student extends Person {
	private String studentId;
	private float gpa;
	String advisor;
	
	public Student() {
		
	}
	
	public Student(String firstName, String lastName, int age, String ssn, String studentId, float gpa, String advisor) {
		
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.setssn(ssn);
		this.studentId = studentId;
		this.setGPA(gpa);
		this.advisor = advisor;
	}
	
	public String getStudentId() {
		return studentId;
	}
	
	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}
	
	public double getGPA() {
		return gpa;
	}
	
	public void setGPA(float gpa) {
		this.gpa = gpa;
	}

	@Override 
	public boolean equals(Object student) {
		if (student.getClass() == Student.class ) {
			Student p = (Student)student;
			if (this.studentId == p.getStudentId())
				return true;
			else 
				return false;
		}
		else
			return false;
	}
	
	@Override
	public String toString() {
		String studentString;
		studentString = "First Name: " + firstName + "\nLast Name: " + lastName + "\nSSN:" + this.getssn() + "\nStudentID: " + studentId + "\nGPA: " + gpa + "\nAdvisor:" + advisor;
		return studentString;
	}
	
	@Override
	public int hashCode() {
		return this.studentId.hashCode();
	}
	
}

